const mysql = require('mysql');
const config = require('../config-local').mysql;
const pool = mysql.createPool(config);

pool.query("show tables;", (err, result) => {
	if (err) {
		console.log(err);
	} else {
		console.log(result);
	}
});
exports.pool = pool;